package cn.com.cifi.mars.mapper.mars;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.com.cifi.mars.bean.dto.IdmPositionPageDto;
import cn.com.cifi.mars.bean.dto.PositionDetailDto;
import cn.com.cifi.mars.entity.common.IdmPosition;

/**
 * 岗位信息
 * @author 60157
 *
 */
public interface IdmPositionMapper extends BaseMapper<IdmPosition> {

	int deleteAll();
	
	int insertSelective(IdmPosition bean);
	
	List<IdmPositionPageDto>selectOrgPositionPage(Page page,@Param("jobName")String jobName,@Param("belongDepId")String belongDepId);

	List<PositionDetailDto>selectPositionDetailPage(Page page,@Param("jobName")String jobName,@Param("belongJobDefId")String belongJobDefId);

	String selectBelongDepFullNoList(@Param("jobNum")String jobNum);
	
	String selectBelongDepFullNameList(@Param("jobNum")String jobNum);
	
	IdmPosition selectByJobNum(@Param("jobNum")String jobNum);

	List<String>selectByPositionname(@Param("positionname")String positionname);
	
	List<String>selectOrgidsByPositionId(@Param("positionId")String positionId);
	
	List<String> selectPermissionName(@Param("orgid")String orgid);
	
	List<String> selectPositionGroupIds(@Param("positionIds")List<String> positionIds);

	List<String> selectJobNum(@Param("positionGroupId")String positionGroupId,@Param("orgdepid")String orgdepid);

	List<String> selectJobNumList();

	
}
